import { MockMethod } from 'vite-plugin-mock';
import { resultSuccess } from '../_util';

enum Api {
  overview = 'asset/getOverviewStatistics',
}
const prefix = '/jeecgboot';
export default [
  {
    url: prefix + Api.overview,
    timeout: 1000,
    method: 'post',
    response: () => {
      return resultSuccess({
        totalCount: 193,
        totalPrice: 292311,
        destoryedTotalCount: 23,
        destoryedTotalPrice: 4225,
        categoryNameList: ['桌子', '椅子', '电器', '办公用品', '电子产品', '耗材', '食品', '图书'],
        categoryCountList: [9, 42, 16, 63, 11, 18, 51, 32],
        useStateNameList: ['在用', '闲置', '报废', '报废审批', '变更审批', '转移审批', '归还审批'],
        ustStateCountList: [12, 41, 10, 4, 12, 6, 8, 17],
      });
    },
  },
] as MockMethod[];
